import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 图片默认地址
    userPhoto: 'https://gss0.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D600%2C800/sign=32efb6e9a3ec08fa26551ba169de1155/ac4bd11373f082029f43836948fbfbedaa641b96.jpg'
  },
  getters: {
  },
  mutations: {
    // 编码风格,mutations大写
    SET_USERPHOTO (state,value) {
      state.userPhoto = value
    }
  },
  actions: {
  },
  modules: {
  }
})
